home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / cellgame.swf / scripts / frame_2 / PlaceObject2_19_10 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2006-06-13  |  1.2 KB  |  36 lines

  1. onClipEvent(load){
  2.    function hit(whichShot)
  3.    {
  4.       if(whichShot != _root.newshot5000)
  5.       {
  6.          i = 1;
  7.          while(i <= 2)
  8.          {
  9.             _root.actions.cellNumber = _root.actions.cellNumber + 1;
  10.             duplicateMovieClip(_root.glob,"cell" + _root.actions.cellNumber,16384 + _root.actions.cellNumber);
  11.             _root["cell" + _root.actions.cellNumber]._x = _X;
  12.             _root["cell" + _root.actions.cellNumber]._y = _Y;
  13.             i++;
  14.          }
  15.          if(whichShot != 0)
  16.          {
  17.             _root.actions.cellNumber = _root.actions.cellNumber + 1;
  18.             duplicateMovieClip(_root.seeker,"cell" + _root.actions.cellNumber,16384 + _root.actions.cellNumber);
  19.             _root["cell" + _root.actions.cellNumber]._x = _X;
  20.             _root["cell" + _root.actions.cellNumber]._y = _Y;
  21.          }
  22.          removeMovieClip(whichShot);
  23.          _root.actions.death(this);
  24.          _root.actions.score += 75;
  25.       }
  26.    }
  27.    moveTime = getTimer();
  28.    appearTime = getTimer();
  29.    ySpeed = 4;
  30.    rotateSpeed = random(8) - 4;
  31.    pause = random(7000) + 7000;
  32.    amoebaSound = new Sound(this);
  33.    amoebaSound.attachSound("amoeba");
  34.    soundStartable = true;
  35. }
  36.